package com.ifugle.rap.application.api;

import java.util.List;
import com.ifugle.rap.application.model.UserPlane;
import org.apache.ibatis.annotations.Mapper;

public interface UserPlaneApi {

    int deleteByPrimaryKey(Long id);

    int insert(UserPlane record);

    int insertSelective(UserPlane record);

    UserPlane selectByPrimaryKey(Long id);

    List<UserPlane> selectByUserId(Long useId);

    int updateByPrimaryKeySelective(UserPlane record);

    int updateByPrimaryKey(UserPlane record);

    int updateByUserIdAndPlaneId(UserPlane record);

    UserPlane selectByUserIdAndPlaneId(Long userId,Long planeId);

    int updateByUserId(Long userId);

    UserPlane selectEnableByUserId(Long userId);
}
